package com.dm.client;

import com.dm.config.DmConfiguration;
import com.dm.fallback.DmUserLinkUserClientFallBack;
import com.dm.pojo.DmUser;
import com.dm.pojo.DmUserLinkUser;
import org.springframework.cloud.openfeign.FeignClient;;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
* Feign
*/
@FeignClient(name = "dm-user-provider", configuration = DmConfiguration.class, fallback = DmUserLinkUserClientFallBack.class)
public interface DmUserLinkUserClient {
@RequestMapping(value = "/getDmUserLinkUserById",method = RequestMethod.POST)
public DmUserLinkUser getDmUserLinkUserById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmUserLinkUserListByMap",method = RequestMethod.POST)
public List<DmUserLinkUser>	getDmUserLinkUserListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmUserLinkUserCountByMap",method = RequestMethod.POST)
public Integer getDmUserLinkUserCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmUserLinkUser",method = RequestMethod.POST)
public Integer qdtxAddDmUserLinkUser(@RequestBody DmUserLinkUser dmUserLinkUser)throws Exception;

@RequestMapping(value = "/qdtxModifyDmUserLinkUser",method = RequestMethod.POST)
public Integer qdtxModifyDmUserLinkUser(@RequestBody DmUserLinkUser dmUserLinkUser)throws Exception;

}

